﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dracham.Classes
{
    public enum Attributes : int
    {
        Hitpoints =     1,
        Magicpoints =   2,
        Strength =      3,
        Agility =       4,
        Intelligence =  5,
        Vitality =      6,
    }

    public enum EquipedSlot : int
    {
        Head =          1,
        Chest =         2,
        Legs =          3,
        Feet =          4,
        Hands =         5,
        Back =          6,
        Weapon =        7,
        Shield =        8,
        Neck =          9,
        Fingers =       10,

        BagSlot1 =      11,
        BagSlot2 =      12,
        BagSlot3 =      13,
        BagSlot4 =      14,
        BagSlot5 =      15,
        BagSlot6 =      16,
        BagSlot7 =      17,
        BagSlot8 =      18,
        BagSlot9 =      19,
        BagSlot10 =     20,

        BagSlot11 =     21,
        BagSlot12 =     22,
        BagSlot13 =     23,
        BagSlot14 =     24,
        BagSlot15 =     25,
        BagSlot16 =     26,
        BagSlot17 =     27,
        BagSlot18 =     28,
        BagSlot19 =     29,
        BagSlot20 =     30,
    }

    public partial class Item : Object
    {
        private Int32 stackSize;

        public Int32 StackSize
        {
            get { return stackSize; }
            set { stackSize = value; }
        }

        public Item Clone()
        {
            return new Item();
        }

        public static Item LoadById(Int32 itemId)
        {
            return GameWorld.ItemPool.SingleOrDefault(i => i.ItemId == itemId);
        }
    }
}
